home *** CD-ROM | disk | FTP | other *** search
- Path: news.candu.aecl.ca!news
- From: Mark Kotyk <kotykm@sask.aecl.ca>
- Newsgroups: comp.lang.c++
- Subject: Re: HELP - Can C++ resd a Synchronous Data stream?
- Date: Wed, 31 Jan 1996 13:05:29 -0600
- Organization: AECL
- Message-ID: <310FBD79.1A40@sask.aecl.ca>
- References: <4elvj1$53n@mail.TJU.EDU>
- NNTP-Posting-Host: speed.sask.aecl.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- Joe Cardani wrote:
- >
- >
- > I'm considering purchasing C++ and learning the language in order
- > to program a specific application.
- >
- > I wish to read a continuous data stream from the
- > COM 1 port of thePC (which is synchronous)
- > buffer the contents, and search for a specific word in the buffer.
- > Then convert the binary to HEX and print it out. Is this someting
- > that C++ can handle.
- >
-
- It can be done, but it won't be easy.
-
- A simpler, but less flexible/powerful way would be the good ol'
- basic:
-
- open "com1:9600,N,8,1" as #1
-
- Mind you the maximum safe speed is 9600 baud, but it is alot
- easier than writing interrupt handlers and such.
-